package edu.lnu.ums.entities;

import edu.lnu.ums.entities.dictionaries.Subject;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;


@Entity
public class TrainingApartment extends Apartment {
    private static final long serialVersionUID = 1L;
    
    @ManyToOne(cascade = {CascadeType.PERSIST})
    @JoinColumn
    private Subject subject;

    public Subject getSubject() {
        return subject;
    }

    public void setSubject(Subject subject) {
        this.subject = subject;
    }

}


